<template>
  <el-container class="system-layout-container">
    <el-aside class="system-layout-aside-menu" width="200px">
      <el-scrollbar height="calc(100% - 56px)">
        <SidebarMenu />
      </el-scrollbar>
      <LayoutSideSysTool />
    </el-aside>
    <el-main>
      <el-config-provider :locale="zhCn" size="small">
        <router-view />
      </el-config-provider>
    </el-main>
  </el-container>
</template>

<script lang="ts" setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';

import SidebarMenu from './SidebarMenu.vue';
import LayoutSideSysTool from './LayoutSideSysTool.vue';
</script>

<style lang="scss" scoped>
.system-layout-container {
  height: 100%;
  background-color: #f7f7f7;

  .system-layout-aside-menu {
    position: relative;
    margin: var(--main-space);
    margin-right: 0;
    box-shadow: var(--el-box-shadow-light);
    border-radius: var(--el-border-radius-base);
    border: 1px solid var(--el-border-color-light);
    overflow: hidden;
    color: var(--el-text-color-primary);
    transition: var(--el-transition-duration);

    background-color: var(--el-fill-color-blank);
    background-image: url('@/assets/img/system-tool-bg.svg');
    background-size: 100% 100%;
    // background-size: auto 100%;
    // background-position: top center;
    background-repeat: no-repeat;
  }
}

.dropdown-user-box {
  .el-dropdown-menu {
    white-space: nowrap;
  }
}
</style>
